<?php echo $this->partial("sidebar.phtml", array('type' => 'brand','count' => array('trends' => $this->trendTotal, 'products' => $this->productTotal, 'social' => 202),'params'=>$this->params,'search_text'=>$this->search_text)); ?>
<div class="trends-grid-block products-scroller isotope-brand">
    <?php
        foreach($this->alldata as $Key=>$Val){
        ?>
            <div href="#" class="brand-block" style="background:url('<?php echo BRANDS_PATH."/".$Val['brand_photo']; ?>') no-repeat scroll center center  / 100% 100%;" onclick="window.location.href='<?php echo APPLICATION_URL ?>/brand/index/brand_name/<?php echo $Val['brand_name']; ?>' ">
            </div>
            <?php
        }
                ?>
</div>